<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/25
 * Time: 8:19
 */
class  Myexception extends  Exception{
    public function getAllInfo(){
        return  "lost data:{$this->getMessage()}";
    }
}

try{
    $x=new  Myexception("can you give you send erro!");
    throw $x;
}
catch (Myexception $e){
    //echo  $e->getAllInfo();
    echo 'c';

    echo 'd';
}
catch (Exception $e){
    echo 'a';

    echo 'b';
}